<?php
namespace app\common\model;

use think\Model;

class OrderLog extends Model
{
    protected $connection = 'db_config_aiqi';	
	
	public static function addLog($order_no, $order_status, $payment_type, $trade_no = '', $note = '')
	{
		self::create([
			'order_no' => $order_no,
			'order_status' => $order_status,
			'payment_type' => $payment_type,
			'trade_no' => $trade_no,
			'note'   => $note
 		]);
	}
}